package mil.af.amc.adpetracker.model;

import javax.persistence.*;
import java.io.Serializable;
import java.io.InputStream;


/**
 * Please fill in this Javadoc
 *
 * @author TSgt Ferguson
 */
@Entity
@Table(name="T_FILE")
public class TemplateFile implements Serializable {

    private int id;
    private String name;
    private InputStream templateFile;

    public TemplateFile() {
    }

    @Id
    @Column(name="FILEID")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Column(name="FILENAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Lob
    @Column(name="FILECONTENTS")
    public InputStream getTemplateFile() {
        return templateFile;
    }

    public void setTemplateFile(InputStream templateFile) {
        this.templateFile = templateFile;
    }
}
